#!/bin/bash
echo ""
echo "*** Skype Installation ***"
echo "***  Version 2.0.0.43  ***"
echo "***    www.x2on.de     ***"
echo ""
echo "Paketquellen hinzufügen..."
export FN=$(date +%Y-%m-%d-%Hh%M)
sudo cp /etc/apt/sources.list ~/sources.list.bak.$FN
sudo echo 'deb http://packages.medibuntu.org/ gutsy free non-free' >> /tmp/sources.list.tmp
sudo cp /tmp/sources.list.tmp /etc/apt/sources.list
echo "GPG-Key herunterladen & hinzufügen..."
sudo wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
echo "Skype installieren..."
sudo apt-get update -qq
sudo apt-get install -y -f -qq skype --force-yes
echo "Aufräumen..."
sudo cp ~/sources.list.bak.$FN /etc/apt/sources.list
sudo rm /tmp/sources.list.tmp
sudo rm skypeinstall
